/**
 * 通知模块类型定义
 * @author LYC
 * @date 2025-09-20
 */

/**
 * 通知配置接口
 */
export interface NotificationConfig {
  title: string
  body: string
  icon?: string
  silent?: boolean
  timeoutType?: 'default' | 'never'
  urgency?: 'normal' | 'critical' | 'low'
  tag?: string
  subtitle?: string
  hasReply?: boolean
  replyPlaceholder?: string
  sound?: string
  closeButtonText?: string
  actions?: Array<{ type: 'button'; text: string }>
}

/**
 * 通知项接口
 */
export interface NotificationItem {
  id: string
  config: NotificationConfig
  createdAt: number
  read: boolean
}

/**
 * 通知显示选项
 */
export interface NotificationOptions {
  saveToHistory?: boolean
  useSystemNotification?: boolean
}
